Searching for top and bottom sets